try {
/*********************
 * Empty Javascript Module
 *********************/

if (window.QSI.Empty === undefined)
QSI.Empty = QSI.util.Class(
{
	initialize:function(options)
	{
		this.globalInitialize(options);
	}
});
/**
 * Module for building design elements
 */
QSI.BuildElementModule = {
	buildElement:function(element)
	{
		if(!element.unitsOfMeasurement)
		{
			element.unitsOfMeasurement = {};
			element.unitsOfMeasurement.width = 'px';
			element.unitsOfMeasurement.height = 'px';
		}
		var el;
		if (this['build'+element.type +'Element'])
			el = this['build'+element.type +'Element'](element);
		
		var deferred = QSI.util.Deferred();
		
		var images = QSI.util.createArrayFromIterable(el.getElementsByTagName('img'));
		var iframes = QSI.util.createArrayFromIterable(el.getElementsByTagName('iframe'));
		var elementsToLoad = images.concat(iframes);
		var numUnloaded = elementsToLoad.length;
		var elementLoaded = function(){
			if(--numUnloaded <= 0)
			{
				deferred.resolve();
			}
		};
		for(var i = 0, ilen = elementsToLoad.length; i<ilen; i++)
		{
			var elementToLoad = elementsToLoad[i];
			if(!elementToLoad.complete)
				QSI.util.observe(elementToLoad, 'load', function(){
					if(elementToLoad.getAttribute('src') || !elementToLoad.getAttribute('data-src'))
						elementLoaded();
				});
			else
			{
				numUnloaded--;
			}
		}
		
		if(numUnloaded == 0)
			deferred.resolve();
		
		el.loadingDeferred = deferred.promise();
		return el;
	},
	buildGenericElement:function(opts)
	{
		var el = this.buildBaseElement(opts);

		return el;
	},
	buildPopOverElement:function(opts)
	{
		var el = this.buildBaseElement(opts);

		return el;
	},
	buildTextElement:function(opts)
	{
		var el = this.buildBaseElement(opts);

		return el;
	},
	buildImageElement:function(opts)
	{
		var el = this.buildBaseElement(opts);

		return el;
	},
	buildTargetElement:function(opts)
	{
		var el = this.buildBaseElement(opts);
		el.style.cursor = 'pointer';
		var ed = opts.embeddedData || [];
		
		var that = this;
		el.setAttribute('data-type', 'target');
		el.onclick = function(){that.onTargetClick(ed);};
		return el;
	},
	buildSpanElement:function(opts)
	{
		this.position = opts.positionAnchors.positionY;
		var el = this.buildBaseElement(opts);
		el.style.width = '100%';
		return el;
	},
	buildTargetSpanElement:function(opts)
	{
		this.position = opts.positionAnchors.positionY;
		var el = this.buildBaseElement(opts);
		el.style.width = '100%';
		el.style.cursor = 'pointer';
		var that = this;
		el.onclick = function(){that.onTargetClick();};
		return el;
	},
	buildEmbeddedTargetElement:function(opts)
	{
		this.hasIframe = true;
		var ed = opts.embeddedData || [];
		
		var url = this.getTarget(ed);
	
		var contentWidth = opts.style.width;
		var contentHeight = opts.style.height;
		
		if(opts.unitsOfMeasurement.width == '%')
		{
			contentWidth = 100;
		}
		if(opts.unitsOfMeasurement.height == '%')
		{
			contentHeight = 100;
		}
		
		var iframe = QSI.util.build('iframe',{'data-src':url, width:'100%', height:'100%', style:{}, frameBorder:0});
		this.getEmbeddedTargets().push(iframe);
		var container = QSI.util.build('div',{
			className:'scrollable', 
			style:{width:contentWidth + opts.unitsOfMeasurement.width, 
				height:contentHeight + opts.unitsOfMeasurement.height, 
				overflow: 'auto'
			}},[iframe]);
		opts.content = container;
		var el = this.buildBaseElement(opts);
		return el;
	},
	buildCloseButtonElement:function(opts)
	{
		var el = this.buildBaseElement(opts);
		
		el.style.cursor = 'pointer';
		var that = this;
		el.onclick = function(){that.onCloseClick();};
		return el;
	},
	buildBaseElement:function(opts)
	{
		var style = opts.style,
			uom = opts.unitsOfMeasurement,
			position = opts.position,
			atts = {style:this.getElementStyle(style, position, uom)},
			top = this.getYPosition(position),
			left = this.getXPosition(position),
			contentWidth = opts.style.width,
			contentHeight = opts.style.height,
			contents, el, 
			b, w, h, dims, 
			i, ilen,
			imgs, image, node,
			dropShadowStyle;
			
		this.setPositionStyles(atts, opts);
		
		if (opts.style.backgroundImage)
			atts.style.backgroundImage = 'url('+opts.style.backgroundImage+')';
		if (opts.style.opacity != 100)
		{
			atts.style.opacity = opts.style.opacity / 100;
			atts.style.filter = 'alpha(opacity = ' +opts.style.opacity + ')';
		}
		
		if(uom.width == '%')
		{
			contentWidth = 100;
		}
		if(uom.height == '%')
		{
			contentHeight = 100;
		}
		
		contents = QSI.util.build('div',{style:{
				position:'absolute',
				top:0,
				left:0,
				width:contentWidth + uom.width,
				height:contentHeight + uom.height,
				overflow:'hidden'
		}});
		el = QSI.util.build('div', atts,[contents]);
		if (opts.content)
		{
			if (typeof opts.content == 'string')
				contents.innerHTML = opts.content;
			else if (typeof opts.content == 'object')
				contents.appendChild(opts.content);
		}
		b = opts.style.borderWidth;
		if (isNaN(b))
			b = 0;
		dropShadowStyle = this.convertPercentStylesToPixels(style, uom)
		w = Math.floor(dropShadowStyle.width*1 + (2*b));
		h = Math.floor(dropShadowStyle.height*1 + (2*b));
		if (opts.dropShadow)
		{
			el.insertBefore(this.buildDropShadow(w, h, b),el.childNodes[0]);
		}

		dims = QSI.util.getDimensions(el);
		el.bc = {x:left+dims.width,y:top+dims.height};
		if (QSI.util.isIE6())
		{
			imgs = el.getElementsByTagName('img');
			for (i=0, ilen=imgs.length;i<ilen;i++)
			{
				image = imgs[i];
				node = QSI.util.fixPNG(image);
				image.parentNode.replaceChild(node, image);
			}
		}
		return el;
	},
	buildDropShadow:function(w, h, b)
	{
		
		var t = Math.ceil(-(h * .1)) - b,
			l = Math.ceil(-(w * .1)) - b,
			dsw, dsh, style, img;
		
		dsw = Math.floor(w * 1.2);
		dsh = Math.floor(h * 1.2);
		
		style = {
			width: dsw + 'px',
			height: dsh + 'px',
			top: t + 'px',
			left: l + 'px',
			position: 'absolute'
		};
		img = QSI.util.build('img',{
			src: QSI.global.imagePath + '/siteintercept/popup_shadow_transparent.png',
			style:style
		});

		if (QSI.util.isIE6())
		{
			img = QSI.util.fixPNG(img);
		}
		return img;
	},
	onCloseClick:function()
	{
		this.close();
	},
	onTargetClick:function(ed)
	{
		this.close();
		var url = this.getTarget(ed);
		var actionOptions = this.actionOptions;
		QSI.util.openTarget(url, actionOptions);
		
	},
	buildIFrame:function(width, height)
	{
		var iframe = QSI.util.build('iframe',{
			style:{
				border:'none',
				position: 'absolute',
				top: 0,
				left: 0,
				filter:"progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"
			},
			width: width + 'px',
			height: height + 'px',
			frameBorder:'0',
			src:QSI.global.imagePath +'/blank.html'
		});

		return iframe;
	},
	setPositionStyles:function(atts, opts)
	{
		if (!opts.positionAnchors)
		{
			opts.positionAnchors = {
				positionX:'left',
				positionY:'top'
			}
		}
		if(this.shouldAnchor)
		{
			if (opts.positionAnchors.positionX == 'left')
			{
				atts.style.left = opts.position.left + 'px';
			}
			else if(opts.positionAnchors.positionX == 'right')
			{
				atts.style.right = opts.position.right + 'px';
			}
			else if(opts.positionAnchors.positionX == 'center')
			{
				this.centerHorizontally(atts, opts);
			}
			if (opts.positionAnchors.positionY == 'top')
			{
				atts.style.top = opts.position.top + 'px';
			}
			else if(opts.positionAnchors.positionY == 'bottom')
			{
				atts.style.bottom = opts.position.bottom + 'px';
			}
			else if(opts.positionAnchors.positionY == 'center')
			{
				this.centerVertically(atts, opts);
			}
		}
	},
	centerHorizontally:function(atts, opts)
	{
		var windowSize = QSI.util.getVisibleWindowSize();
		var width = opts.style.width;
		if(opts.unitsOfMeasurement.width == '%')
		{
			width = QSI.util.convertPercentToPixel(width, windowSize.width);
		}
		atts.style.left = '50%';
		atts.style.marginLeft = '-' + width/2 + 'px';
	},
	centerVertically:function(atts, opts)
	{
		var windowSize = QSI.util.getVisibleWindowSize();
		var height = opts.style.height;
		if(opts.unitsOfMeasurement.width == '%')
		{
			height = QSI.util.convertPercentToPixel(height, windowSize.height);
		}
		atts.style.top = '50%';
		atts.style.marginTop = '-' + height/2 + 'px';
	},
	convertPercentStylesToPixels:function(style, unitsOfMeasurement)
	{
		style = JSON.parse(JSON.stringify(style));
		var windowSize = QSI.util.getVisibleWindowSize();
		if(unitsOfMeasurement.width == '%' && style.width)
			style.width = QSI.util.convertPercentToPixel(parseInt(style.width), windowSize.width);
		if(unitsOfMeasurement.height == '%' && style.height)
			style.height = QSI.util.convertPercentToPixel(parseInt(style.height), windowSize.height);
		return style;
	},
	getYPosition:function(position)
	{
		return position.top*1;
	},
	getXPosition:function(position)
	{
		return position.left*1;
	},
	getElementStyle:function(style, position, uom)
	{
		return {
			position:'absolute',
			zIndex:style.zIndex,
			width:style.width + uom.width,
			height:style.height + uom.height,
			backgroundColor:style.backgroundColor,
			borderWidth:style.borderWidth + 'px',
			borderColor:style.borderColor,
			borderStyle:'solid'
		}
	},
	initializeIframes:function()
	{
		var iframes = this.getEmbeddedTargets(),
			i, ilen, iframe, dataSrc;
		for(i = 0, ilen = iframes.length; i<ilen; i++)
		{
			iframe = iframes[i];
			dataSrc = iframe.getAttribute('data-src');
			if(dataSrc)
				iframe.src = dataSrc;
		}
	},
	getEmbeddedTargets:function()
	{
		if(!this.embeddedTargets)
			this.embeddedTargets = [];
		return this.embeddedTargets;
	}
}

/*****************
 * Embedded Target module
 ****************/
if (window.QSI.EmbeddedTarget === undefined)
QSI.EmbeddedTarget = QSI.util.Class(
{
	initialize:function(url, options)
	{
		this.options = options || {};
		this.url = url;
		this.width = this.options.targetWidth;
		this.height = this.options.targetHeight;
		
		var docSize = QSI.util.getPageSize();
		var docWidth = docSize.width;
		var docHeight = docSize.height;
		if(this.width > docWidth) this.width = docWidth-30;
		if(this.height > docHeight) this.height = docHeight-30;
			
		
		this.popup();
		var that = this;
		
		if (this.options.autoCloseTarget)
		{
			QSI.util.observe(window, 'message', function(e){
				if (e.data == 'closeQSIWindow')
				{
					that.close();
				}

			});
		}
		
	},
	resetStyles:function()
	{
		var style = this.options.resetStyle;
		document.body.appendChild(QSI.util.build('style',{type:'text/css'},style));
	},	
	close:function()
	{
		try
		{
			//console.log(this.targetIframe.contentWindow.name);
			this.container.parentNode.removeChild(this.container);
			
			this.shadowBox.parentNode.removeChild(this.shadowBox);
			document.body.style.overflow = 'auto';
		}
		catch(e)
		{
			//console.error(e)
		}
		
	},
	popup:function()
	{
		try {
			this.container = this.build();
			document.body.appendChild(this.container);
			this.shadowBox = this.buildShadowBox();
			
			document.body.style.overflow = 'hidden';
			document.body.appendChild(this.shadowBox);
			
			this.container.style.zIndex = QSI.global.currentZIndex++;
			var width = this.width;
			var height = this.height;
			var scrollOffsets = QSI.util.getScrollOffsets();
			var docSize = QSI.util.getPageSize();
			var docWidth = docSize.width;
			var docHeight = docSize.height;
			var targetX = (docWidth-width)/2;
			var targetY = (docHeight-height)/2;
			
			if (!QSI.util.isFixed())
			{
				targetX += scrollOffsets[0];
				targetY += scrollOffsets[1];
			}
			this.container.style.zoom=1;
			this.container.style.left = targetX+'px';
			this.container.style.top = targetY+'px';
		}
		catch(e){QSI.dbg.e(e);}
	},
	build:function()
	{
		var elements = [];
		elements.push(this.buildContainer());
		var dsw = Math.floor(this.width * 1.2);
		var dsh = Math.floor(this.height * 1.2);
		
		var position = 'fixed';
		if (!QSI.util.isFixed())
		{
			position = 'absolute';
		}
		if (QSI.util.isIE6())
		{
			elements.push(this.buildIFrame(this.width, this.height));
		}
		var el = QSI.util.build('div',{
			className:'QSIEmbeddedTarget',
			style:{
				position:position
			}
		}, elements);
		return el;
	},
	buildCloseButtonElement:function()
	{
		var img = QSI.util.build('img',{
			src: QSI.global.imagePath + '/siteintercept/bwc_close.png',
			style:{
				cursor:'pointer',
				position: 'absolute',
				top: '-15px',
				right: '-15px',
				zIndex:QSI.global.currentZIndex++
			}
		});
		
		if (QSI.util.isIE6())
		{
			img = QSI.util.fixPNG(img);
		}
		
		var that = this;
		img.onclick = function(){that.onCloseClick();};
		return img;
	},
	buildContainer:function()
	{
		var atts = {};
		atts.style = {};
		var top = 0;
		var left = 0;
		atts.style = {
			top:top + 'px',
			left:left + 'px',
			position:'absolute',
			
			zIndex:QSI.global.currentZIndex++,
			width:this.width+ 'px',
			height:this.height + 'px',
			backgroundColor:'#ffffff',
			border: '5px solid #333333',
			borderRadius:'5px',
			mozBorderRadius:'5px'
		};
		
		var el = QSI.util.build('div', atts);
		
		
		var w = Math.floor(this.width*1);
		var h = Math.floor(this.height*1);
		el.appendChild(this.buildDropShadow(w, h));
		this.targetIframe = this.buildTargetIframe();
		this.targetIframe.style.display = 'none';
		var waiter = QSI.util.build('img',{
			src: QSI.global.imagePath + '/ajax-loading.gif',
			style: {
				position: 'absolute',
				top:((this.height/2)-10)+'px',
				left: ((this.width/2)-110)+'px'
			}
		});
		var that = this;
		var load = function()
		{
			that.targetIframe.style.display = 'block';
			waiter.style.display = 'none';
		}
		QSI.util.observe(this.targetIframe, 'load', load);
		this.targetIframe.src = this.url;
		el.appendChild(waiter);
		el.appendChild(this.targetIframe);
		el.appendChild(this.buildCloseButtonElement());
		var dims = QSI.util.getDimensions(el);
		el.bc = {x:left+dims.width,y:top+dims.height};
		
		return el;
	},
	buildDropShadow:function(w, h)
	{		
	
		var t = Math.ceil(-(h * .1));
		var l = Math.ceil(-(w * .1));
		var dsw = Math.floor(w * 1.2);
		var dsh = Math.floor(h * 1.2);
		var style = {
			width: dsw + 'px',
			height: dsh + 'px',
			top: t + 'px',
			left: l + 'px',
			position: 'absolute'
		};
		var img = QSI.util.build('img',{
			src: QSI.global.imagePath + '/siteintercept/popup_shadow_transparent.png',
			style:style
		});
		
		if (QSI.util.isIE6())
		{
			img = QSI.util.fixPNG(img);
		}
		return img;
	},
	onCloseClick:function()
	{
		this.close();
	},
	buildIFrame:function(width, height)
	{
		var iframe = QSI.util.build('iframe',{
			style:{
				border:'none',
				position: 'absolute',
				top: 0,
				left: 0,
				filter:"progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"
			},
			width: width + 'px',
			height: height + 'px',
			frameBorder:'0',
			src:QSI.global.imagePath +'/blank.html'
		});
	
		return iframe;
	},
	buildTargetIframe:function()
	{
		var iframe = QSI.util.build('iframe',{
			width: this.width + 'px',
			height: this.height + 'px',
			frameBorder:'0',
			style:{
				position:'absolute',
				top:0,
				left:0,
				zIndex:QSI.global.currentZIndex++
			}
		});
	
		return iframe;
	},
	buildShadowBox:function()
	{
		var opacity = 1
		var color = 'transparent';
		var dim = QSI.util.getPageSize();
		var width = dim.width;
		var height = dim.height;
		var scrollOffsets = QSI.util.getScrollOffsets();
		var overlay = QSI.util.build('div',{
			style:{
				position:'absolute',
				backgroundColor:color,
				left:scrollOffsets[0]+'px',
				top:scrollOffsets[1]+'px',
				width:width + 'px',
				height:height + 'px',
				opacity:opacity,
				zIndex:QSI.global.currentZIndex++,
				filter:"alpha(opacity="+(opacity*100)+")"
			}
		});
		//var that = this;
		//overlay.onclick = function(){that.onCloseClick();};
		return overlay;
	}
});/*****************
 * user defined html module
 ****************/
if (window.QSI.UserDefinedHTML === undefined)
QSI.UserDefinedHTML = QSI.util.Class(QSI.BuildElementModule,
{
	initialize:function(options)
	{
		this.globalInitialize(options);
		
		if (this.shouldShow())
			this.display();
	},
	display:function()
	{
		if (this.options.elements)
		{
			this.elements = this.options.elements.Elements || [];
			this.minTop = this.options.elements.MinTop;
			this.minLeft = this.options.elements.MinLeft;
			for(var i = 0, ilen = this.elements.length; i < ilen; i++)
			{
				var element = this.elements[i];
				if(element.locators)
				{
					QSI.PipedText.setLocators(element.locators);
					element.content = QSI.PipedText.evaluateLocators(element.content);
				}
			}
			
			this.node = this.build();
			if (this.width && this.height)
				this.options.size = {
					width: this.width, 
					height: this.height
				};
		}
		else if (this.options.html)
		{
			if(this.options.locators)
			{
				QSI.PipedText.setLocators(this.options.locators);
				this.options.html = QSI.PipedText.evaluateLocators(this.options.html);
			}
			this.node = QSI.util.build('div',
				{
					style:{
						width:this.options.size['width'] + "px",
						height:this.options.size['height'] + "px",
						overflow:'hidden'
					}
				});
			
			this.node.innerHTML = this.options.html;
		}
		this.insert();
	},
	resetStyles:function()
	{
		var style = this.options.resetStyle;
		document.body.appendChild(QSI.util.build('style',{type:'text/css'},style));
	},
	build:function()
	{
		var elements = [];
		var maxX = 0;
		var maxY = 0;
		for (var i=0,ilen=this.elements.length;i<ilen;i++)
		{
			var el = this.buildElement(this.elements[i]);
			if (el.bc && el.bc.x > maxX)
				maxX = el.bc.x;
			if (el.bc && el.bc.y > maxY)
				maxY = el.bc.y;
			elements.push(el);

		}

		this.width = maxX;
		this.height = maxY;

		var dsw = Math.floor(this.width * 1.2);
		var dsh = Math.floor(this.height * 1.2);


		var el = QSI.util.build('div',{
			className:'QSIUserDefined ' + this.id + '_UserDefinedHTMLContainer',
			style:{
				width:maxX+'px',
				height:maxY+'px',
				overflow:'hidden',
				position: 'relative'
			}
		}, elements);
		return el;
	},
	onTargetClick:function(ed)
	{
		var url = this.getTarget(ed);
		var actionOptions = this.actionOptions;
		QSI.util.openTarget(url, actionOptions);
		
	},
	getYPosition:function(position)
	{
		return (position.top - this.minTop);
	},
	getXPosition:function(position)
	{
		return (position.left - this.minLeft);
	},
	getElementStyle:function(style, position)
	{
		return {
			top:this.getYPosition(position) + 'px',
			left:this.getXPosition(position)  + 'px',
			position:'absolute',

			zIndex:style.zIndex,
			width:style.width + 'px',
			height:style.height + 'px',
			backgroundColor:style.backgroundColor,
			borderWidth:style.borderWidth + 'px',
			borderColor:style.borderColor,
			borderStyle:'solid'
		}
	},
	insert:function()
	{
		if (this.options.insertionLocation)
		{
			this.container = QSI.util.$(this.options.insertionLocation);
			if (!this.container)
				return;
			QSI.util.impress(this.options.impressionURL);
			
			if (this.displayOptions.replaceContents == undefined || this.displayOptions.replaceContents)
			{
				this.container.innerHTML = "";

			}
			
			if (this.displayOptions.customPosition)
			{
				this.position();
			}
			if (this.displayOptions.insertContentsBefore)
			{
				if (this.container.parentNode)
					this.container.parentNode.insertBefore(this.node, this.container);
			}
			else if (this.displayOptions.insertContentsAfter)
			{
				if (this.container.parentNode)
					this.container.parentNode.insertBefore(this.node, this.container.nextSibling);
			}
			else
			{
				this.container.appendChild(this.node);
			}
			if (this.displayOptions.fixToPage && !QSI.util.isIE6())
			{
				if (this.displayOptions.minFixDist !== '')
				{
					this.scrollFix();
				}
				else
				{
					this.fixPosition();
				}
			}
			this.initializeIframes();
			this.displayed.resolve();
		}
	},
	position:function()
	{
		if (this.displayOptions.insertContentsBefore || this.displayOptions.insertContentsAfter)
		{
			return;
		}
		var position = this.displayOptions.position;
		var xoff = (this.displayOptions.xOffset || 0)*1;
		var yoff = (this.displayOptions.yOffset || 0)*1;
		
		var cSize = QSI.util.getDimensions(this.container);
		var nSize = this.options.size;
		var vc = cSize.height/2 - nSize.height/2;
		var hc = cSize.width/2 - nSize.width/2;
		var cStyle = {};
		var style = {};
		switch (position)
		{
			default:
			case 'TL':
				var t=0+yoff;
				var l=0+xoff;
				style={
					top:t+'px',
					left:l+'px'
				};
			break;
			case 'ML':
				var t=vc+yoff;
				var l=0+xoff;
				style={
					top:t+'px',
					left:l+'px'
				}
			break
			case 'BL':
				var b=0-yoff;
				var l=0+xoff;
				style={
					bottom:b+'px',
					left:l+'px'
				};
			break
			case 'TC':
				var t=0+yoff;
				var l=hc+xoff;
				style = {
					top:t+'px',
					left:l+'px'
				}
			break
			case 'MC':
				var t=vc+yoff;
				var l=hc+xoff;
				style = {
					top:t+'px',
					left:l+'px'
				}
			break
			case 'BC':
				var b=0-yoff;
				var l=hc+xoff;
				style = {
					bottom:b+'px',
					left:l+'px'
				}
			break
			case 'TR':
				var t=0+yoff;
				var r=0-xoff;
				style = {
					top:t+'px',
					right:r+'px'
				};
			break;
			case 'MR':
				var t=vc+yoff;
				var r=0-xoff;
				style = {
					top:t+'px',
					right:r+'px'
				}
			break;
			case 'BR':
				var b=0-yoff;
				var r=0-xoff;
				style = {
					bottom:b+'px',
					right:r+'px'
				};
			break;
			case 'OML':
				cStyle = {overflow:'visible'};
				var l = -nSize.width+xoff;
				var t = vc+yoff;
				style = {
					top:t+'px',
					left:l+'px'
				};
			break;
			case 'OTLL':
				cStyle = {overflow:'visible'};
				var l = -nSize.width+xoff;
				var t = 0+yoff;
				style = {
					top:t+'px',
					left:l+'px'
				};
			break;
			case 'OTLT':
				cStyle = {overflow:'visible'};
				var l = 0+xoff;
				var t = -nSize.height+yoff;
				style = {
					top:t+'px',
					left:l+'px'
				};
			break;
			case 'OBLL':
				cStyle = {overflow:'visible'};
				var l = -nSize.width+xoff;
				var b = 0-yoff;
				style = {
					bottom:b+'px',
					left:l+'px'
				};
			break;
			case 'OBLB':
				cStyle = {overflow:'visible'};
				var l=0+xoff;
				var b=-nSize.height-yoff;
				style = {
					bottom:b+'px',
					left:l+'px'
				};
			break;
			case 'OTC':
				cStyle = {overflow:'visible'};
				var l=hc+xoff;
				var t=-nSize.height+yoff;
				style = {
					top:t+'px',
					left:l+'px'
				};
			break;
			case 'OTRT':
				cStyle = {overflow:'visible'};
				var r=0-xoff;
				var t=-nSize.height+yoff;
				style = {
					top:t+'px',
					right:r+'px'
				};
			break;
			case 'OTRR':
				cStyle = {overflow:'visible'};
				var r=-nSize.width-xoff;
				var t=0+yoff;
				style = {
					top:t+'px',
					right:r+'px'
				};
			break;
			case 'OMR':
				cStyle = {overflow:'visible'};
				var r=-nSize.width-xoff;
				var t=vc+yoff;
				style = {
					top:t+'px',
					right:r+'px'
				};
			break;
			case 'OBRR':
				cStyle = {overflow:'visible'};
				var r=-nSize.width-xoff;
				var b=0-yoff;
				style = {
					bottom:b+'px',
					right:r+'px'
				};
			break;
			case 'OBRB':
				cStyle = {overflow:'visible'};
				var r=0-xoff;
				var b=-nSize.height-yoff;
				style = {
					bottom:b+'px',
					right:r+'px'
				};
			break;
			case 'OBC':
				cStyle = {overflow:'visible'};
				var l=hc+xoff;
				var b=-nSize.height-yoff;
				style = {
					bottom:b+'px',
					left:l+'px'
				};
			break;
		}
		style.position = 'absolute';
		cStyle.position = 'relative';
		QSI.util.setStyle(this.container, cStyle);
		QSI.util.setStyle(this.node, style);
		
	},
	scrollFix:function()
	{
		var that=this;
		var minDist = this.displayOptions.minFixDist*1;
		var oPos = QSI.util.cumulativeOffset(this.node,true);
		var f = function(){
			var s = QSI.util.scrollTop();
			if (oPos.top-s < minDist && !that.fixed)
			{
				var fix = Math.max(oPos.top-s, minDist);
				that.fixPosition(fix);
			}
			else if (oPos.top-s > minDist && that.fixed)
			{
				that.unfixPosition();
			}
			
		};
		QSI.util.observe(window, 'scroll', f);
		if (QSI.util.scrollTop() != 0)
		{
			f();
		}
	},
	fixPosition:function(optTop)
	{
		var pos = QSI.util.cumulativeOffset(this.node,true);
		var top = pos.top;
		if (optTop !== undefined)
		{
			top=optTop;
		}
		QSI.util.setStyle(this.node,{
			top:top+'px',
			left:pos.left+'px',
			position: 'fixed'
		});
		this.fixed = true;
		
		var that = this;
		var currheight = 0;
		var fr = function(){that.finishResize();};
		if (!this.resizeW)
		{
			this.resizeW = QSI.util.observe(window, 'resize', function(){
				if(currheight != QSI.util.getPageSize().height)
				{
					if (!that.resizing)
					{
						that.unfixPosition();
						that.resizing = true;
						that.resizeW = setTimeout(fr,500);
					}
					else
					{
						clearTimeout(that.resizeW);
						that.resizeW = setTimeout(fr,500);
					}
					currheight = QSI.util.getPageSize().height;
				}
			});
		}
		
	},
	finishResize:function()
	{
		this.resizing = false;
		clearTimeout(this.resizeW);
		this.fixPosition();
	},
	unfixPosition:function()
	{
		if (this.resizeW)
			clearTimeout(this.resizeW);
		QSI.util.setStyle(this.node,{
			top:'auto',
			left:'auto',
			position: 'fixed'
		});
		this.position();
		this.fixed = false;
		
	}

});QSI.util.watchPage();
QSI.util.observe(window, 'message', function(e){
	if (e.data)
	{
		var parts = e.data.split('|');
		if (parts[0] == 'QualtricsEOS')
		{
			var sid = parts[1];
			var ssid = parts[2];
			QSI.history.logSurvey(sid,ssid);
		}
	}

});
QSI.history.logVisit();
QSI.history.logIntercept('SI_38xEOvWPchgA3je', '');
QSI.history.logIntercept('SI_5BJAZA3We1qNH7u', 'AS_35408483');
QSI.history.logIntercept('SI_8fiEPIsi6hvHROc', 'AS_3461727');
QSI.history.logIntercept('SI_ai2DPVK1I1MVhFG', '');
QSI.history.logIntercept('SI_baq09Z0lnwnAFA8', '');
QSI.history.logIntercept('SI_bjQmfWFnw60aOwd', '');
(function(){
	var QSIEmpty = new QSI.Empty({
		id:'SI_38xEOvWPchgA3je',
		type:'Empty'
	});
	QSI.reg['SI_38xEOvWPchgA3je'] = QSIEmpty;
})();QSI.ed['SI_5BJAZA3We1qNH7u'] = [{"name":"Q_lang","type":"JavaScriptVal","value":"s_prop8.toUpperCase()"},{"name":"History","type":"History","value":null},{"name":"PageCount","type":"PageCount","value":null},{"name":"Time","type":"TimeOnSite","value":null},{"name":"URL","type":"CurrentPage","value":null},{"name":"PageReferrer","type":"Referer","value":null},{"name":"PageName","type":"JavaScriptVal","value":"s_pageName"},{"name":"SiteReferrer","type":"SiteReferer","value":null},{"name":"ProductDesc","type":"JavaScriptVal","value":"s_products.replace(';','')"},{"name":"s_prop2","type":"JavaScriptVal","value":"s_prop2"},{"name":"s_prop3","type":"JavaScriptVal","value":"s_prop3"},{"name":"s_prop4","type":"JavaScriptVal","value":"s_prop4"},{"name":"CC","type":"JavaScriptVal","value":"s_prop7"},{"name":"LC","type":"JavaScriptVal","value":"s_prop8"}];
QSI.global.intercepts['SI_5BJAZA3We1qNH7u'] = {
	CreativeID:'CR_8pkwyEQneZ0jnAo',
	ASID:'AS_35408483'
};
(function(){
	var QSIUserDefinedHTML = new QSI.UserDefinedHTML({
		id:'SI_5BJAZA3We1qNH7u',
		type:'UserDefinedHTML',
		targetURL:'https://siteintercept.qualtrics.com//WRSiteInterceptEngine/?Q_Redirect=https%253A%252F%252Fhpsupport.qualtrics.com%252FSE%253FSID%253DSV_2ueEK1cceUB6hp2&Q_CID=CR_8pkwyEQneZ0jnAo&Q_SRT=b8sDA7pwYk56Z0FLfPF8NA%3D%3D&Q_SIID=SI_5BJAZA3We1qNH7u&Q_ASID=AS_35408483&Q_LOC=http%3A%2F%2Fh10025.www1.hp.com%2Fewfrf%2Fwc%2Fdocument%3Fdocname%3Dc01631295%26cc%3Dus%26dlc%3Den%26lc%3Den%26jumpid%3Dreg_R1002_USEN',
		impressionURL:'https://siteintercept.qualtrics.com//WRSiteInterceptEngine/?Q_Impress=1&Q_CID=CR_8pkwyEQneZ0jnAo&Q_SIID=SI_5BJAZA3We1qNH7u&Q_ASID=AS_35408483&Q_LOC=http%3A%2F%2Fh10025.www1.hp.com%2Fewfrf%2Fwc%2Fdocument%3Fdocname%3Dc01631295%26cc%3Dus%26dlc%3Den%26lc%3Den%26jumpid%3Dreg_R1002_USEN',
		interceptDisplayOptions:{"displayRate":"100","noshow":"0","cookieDomain":"","hasRandomization":false},
		actionOptions:{"targetNewWindow":false,"targetEmbedded":true,"targetFullScreen":false,"targetWidth":"600","targetHeight":"700","displayElement":"voc_element","actionSetSampleRate":"100","actionSetContinueExecution":true,"autoCloseTarget":false,"targetPopUnder":false,"useCustomTrigger":false,"triggerEntirePage":true,"triggerType":"scroll","triggerElementID":"","scrollPercentage":"90"},
		elements:{"Elements":[{"type":"EmbeddedTarget","style":{"width":"640","height":"270","borderWidth":"0","borderColor":"transparent","backgroundColor":"rgb(255, 255, 255)","zIndex":2000000000,"opacity":100},"position":{"top":"68","bottom":659,"left":"225","right":285},"positionAnchors":{"positionX":"left","positionY":"top"},"content":"<div><div style=\"position: absolute; top: 0px; left: 0px; width: 640px; height: 270px; display: none; \"><i>Your Intercept's target will appear here<\/i><div class=\"PreviewWatermark\" style=\"display: none; top: 110px; left: 182px; \">Target Preview<\/div><\/div><iframe scrolling=\"auto\" frameborder=\"no\" style=\"width: 640px; height: 270px; \"><\/iframe><\/div>","locators":false},{"type":"Text","style":{"width":"0","height":"0","borderWidth":"0","borderColor":"transparent","backgroundColor":"transparent","zIndex":2000000000,"opacity":100},"position":{"top":"156","bottom":841,"left":"295","right":855},"positionAnchors":{"positionX":"left","positionY":"top"},"content":"","locators":false}],"MinTop":"68","MinLeft":"225"},		resetStyle:".QSIUserDefined div,.QSIUserDefined dl,.QSIUserDefined dt,.QSIUserDefined dd,.QSIUserDefined ul,.QSIUserDefined ol,.QSIUserDefined li,.QSIUserDefined h1,.QSIUserDefined h2,.QSIUserDefined h3,.QSIUserDefined h4,.QSIUserDefined h5,.QSIUserDefined h6,.QSIUserDefined pre,.QSIUserDefined form,.QSIUserDefined fieldset,.QSIUserDefined textarea,.QSIUserDefined p,.QSIUserDefined blockquote,.QSIUserDefined th,.QSIUserDefined td {margin:0;padding:0;color: black;font-family: arial;font-size: 12px;line-height: normal;}.QSIUserDefined ul {margin: 12px 0;padding-left: 40px;}.QSIUserDefined ol,.QSIUserDefined ul {margin: 12px 0;padding-left: 40px;}.QSIUserDefined ul li {list-style-type: disc;}.QSIUserDefined ol li {list-style-type: decimal;}",								displayOptions:{"customPosition":true,"position":"OBC","replaceContents":false,"appendContents":false,"insertContentsBefore":false,"insertContentsAfter":true,"xOffset":"0","yOffset":"0","fixToPage":false,"minFixDist":""},
		insertionLocation:'voc_element'
	});
	QSI.reg['SI_5BJAZA3We1qNH7u'] = QSIUserDefinedHTML;
})();
QSI.ed['SI_8fiEPIsi6hvHROc'] = [{"name":"Q_lang","type":"StaticVal","value":"EN"},{"name":"History","type":"History","value":null},{"name":"PageCount","type":"PageCount","value":null},{"name":"Time","type":"TimeOnSite","value":null},{"name":"URL","type":"CurrentPage","value":null},{"name":"PageReferrer","type":"Referer","value":null},{"name":"SiteReferrer","type":"SiteReferer","value":null},{"name":"SearchTerm","type":"SearchTerm","value":null},{"name":"PageName","type":"JavaScriptVal","value":"s_pageName"},{"name":"ProductDesc","type":"JavaScriptVal","value":"s_products.replace(';','')"},{"name":"s_prop2","type":"JavaScriptVal","value":"s_prop2"},{"name":"s_prop3","type":"JavaScriptVal","value":"s_prop3"},{"name":"s_prop4","type":"JavaScriptVal","value":"s_prop4"},{"name":"CC","type":"JavaScriptVal","value":"s_prop7"},{"name":"LC","type":"JavaScriptVal","value":"s_prop8"},{"name":"PageDesc","type":"JavaScriptVal","value":"soc_pageDesc"},{"name":"PageTitle","type":"JavaScriptVal","value":"soc_pageTitle"}];
QSI.global.intercepts['SI_8fiEPIsi6hvHROc'] = {
	CreativeID:'CR_bD824nkNDbeKN3C',
	ASID:'AS_3461727'
};
(function(){
	var QSIUserDefinedHTML = new QSI.UserDefinedHTML({
		id:'SI_8fiEPIsi6hvHROc',
		type:'UserDefinedHTML',
		targetURL:'https://siteintercept.qualtrics.com//WRSiteInterceptEngine/?Q_Redirect=https%253A%252F%252Fhpsupport.qualtrics.com%252FSE%253FSID%253DSV_bK0VzcGf8kbo3B2&Q_CID=CR_bD824nkNDbeKN3C&Q_SRT=FYpbUCz1xDcl6Yq80i%2FjFw%3D%3D&Q_SIID=SI_8fiEPIsi6hvHROc&Q_ASID=AS_3461727&Q_LOC=http%3A%2F%2Fh10025.www1.hp.com%2Fewfrf%2Fwc%2Fdocument%3Fdocname%3Dc01631295%26cc%3Dus%26dlc%3Den%26lc%3Den%26jumpid%3Dreg_R1002_USEN',
		impressionURL:'https://siteintercept.qualtrics.com//WRSiteInterceptEngine/?Q_Impress=1&Q_CID=CR_bD824nkNDbeKN3C&Q_SIID=SI_8fiEPIsi6hvHROc&Q_ASID=AS_3461727&Q_LOC=http%3A%2F%2Fh10025.www1.hp.com%2Fewfrf%2Fwc%2Fdocument%3Fdocname%3Dc01631295%26cc%3Dus%26dlc%3Den%26lc%3Den%26jumpid%3Dreg_R1002_USEN',
		interceptDisplayOptions:{"displayRate":"100","noshow":"0","cookieDomain":"","hasRandomization":false},
		actionOptions:{"targetNewWindow":true,"targetEmbedded":false,"targetFullScreen":false,"targetWidth":"535","targetHeight":"700","displayElement":"breadcrumbs","actionSetSampleRate":"100","actionSetContinueExecution":true,"autoCloseTarget":false,"targetPopUnder":false,"useCustomTrigger":false,"triggerEntirePage":true,"triggerElementID":"","scrollPercentage":"100"},
		elements:{"Elements":[{"type":"Target","style":{"width":"80","height":"27","borderWidth":"0","borderColor":"rgb(0, 0, 0)","backgroundColor":"transparent","zIndex":2000000000,"opacity":100},"position":{"top":"128","bottom":842,"left":"163","right":1351},"positionAnchors":{"positionX":"left","positionY":"top"},"content":"<div style=\"display: none;\">&nbsp;<\/div><style type=\"text\/css\">#FeedbackButton_qualtrics{  height:27px;  width:80px;  background-image:url(https:\/\/hpsupport.qualtrics.com\/WRQualtricsControlPanel\/Graphic.php?IM=IM_dgmpqcheuxOtSXW);}#FeedbackButton_qualtrics:hover{  background-image:url(https:\/\/hpsupport.qualtrics.com\/WRQualtricsControlPanel\/Graphic.php?IM=IM_eLLTcKw4P7MGzR2);}<\/style><div id=\"FeedbackButton_qualtrics\">&nbsp;<\/div>","locators":false}],"MinTop":"128","MinLeft":"163"},		resetStyle:".QSIUserDefined div,.QSIUserDefined dl,.QSIUserDefined dt,.QSIUserDefined dd,.QSIUserDefined ul,.QSIUserDefined ol,.QSIUserDefined li,.QSIUserDefined h1,.QSIUserDefined h2,.QSIUserDefined h3,.QSIUserDefined h4,.QSIUserDefined h5,.QSIUserDefined h6,.QSIUserDefined pre,.QSIUserDefined form,.QSIUserDefined fieldset,.QSIUserDefined textarea,.QSIUserDefined p,.QSIUserDefined blockquote,.QSIUserDefined th,.QSIUserDefined td {margin:0;padding:0;color: black;font-family: arial;font-size: 12px;line-height: normal;}.QSIUserDefined ul {margin: 12px 0;padding-left: 40px;}.QSIUserDefined ol,.QSIUserDefined ul {margin: 12px 0;padding-left: 40px;}.QSIUserDefined ul li {list-style-type: disc;}.QSIUserDefined ol li {list-style-type: decimal;}",								displayOptions:{"customPosition":true,"position":"MR","replaceContents":false,"appendContents":true,"insertContentsBefore":false,"insertContentsAfter":false,"xOffset":"0","yOffset":"0","fixToPage":false,"minFixDist":""},
		insertionLocation:'breadcrumbs'
	});
	QSI.reg['SI_8fiEPIsi6hvHROc'] = QSIUserDefinedHTML;
})();
(function(){
	var QSIEmpty = new QSI.Empty({
		id:'SI_ai2DPVK1I1MVhFG',
		type:'Empty'
	});
	QSI.reg['SI_ai2DPVK1I1MVhFG'] = QSIEmpty;
})();(function(){
	var QSIEmpty = new QSI.Empty({
		id:'SI_baq09Z0lnwnAFA8',
		type:'Empty'
	});
	QSI.reg['SI_baq09Z0lnwnAFA8'] = QSIEmpty;
})();(function(){
	var QSIEmpty = new QSI.Empty({
		id:'SI_bjQmfWFnw60aOwd',
		type:'Empty'
	});
	QSI.reg['SI_bjQmfWFnw60aOwd'] = QSIEmpty;
})();}catch(e){QSI.dbg.e(e);}